<%@ page pageEncoding="UTF-8" contentType="text/html"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib tagdir="/WEB-INF/tags" prefix="util"%>

<div id="menu">
	<ul>
		<util:list-item url="welcome" selected="${param.current_page}" text="Home" />

		<c:choose>
			<c:when test="${loggedIn==true}">
				<util:list-item url="j_spring_security_logout" selected="${param.current_page}" text="Logout" />
			</c:when>
			<c:otherwise>
				<util:list-item url="login" selected="${param.title}" text="Login" />
			</c:otherwise>
		</c:choose>

		<util:list-item url="about" selected="${param.current_page}" text="About us" />

		<!-- 
		<util:list-item url="contact" selected="${param.current_page}" text="Contact us" />
		<util:list-item url="recent" selected="${param.current_page}" text="Recent Books" />
		<util:list-item url="special" selected="${param.current_page}" text="Special Books" />
		-->
	</ul>
</div>
